<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
 
      	<h:head>      		
      		<meta http-equiv="refresh" content="900;url=login.jsf" />
      		<div id="titulo">
      			<title><ui:insert name="pageTitle">Page Title</ui:insert></title>
      		</div>      			
      		<h:outputStylesheet name="estilos.css" library="css"></h:outputStylesheet>
      		<h:outputScript name="validacao.js" library="js"></h:outputScript>
      	</h:head> 
   		
   		<h:body>   		
	   		<div id="container">   			
	   			<div id="header">
	   				<ui:insert name="pageHeader">Page Header</ui:insert>	   				
	   			</div>
	   			<div id="header_login">
	   			<h:message for="login"/>
	   			<h:form id="login" rendered="#{validacaoUsuarioBean.verificarSessao()}">
	   				<h:commandLink action="/pages/meuUsuario">	   				
	   					<h:outputText value="#{validacaoUsuarioBean.retornarUsuario().nome}" />
	   					<f:setPropertyActionListener target="#{usuarioBean.usuarioSelecionado}" value="#{usuario}"/>
	   				</h:commandLink> 
	   				|<h:commandLink action="/pages/meuUsuarioAlteraSenha">	   				
	   					Alterar Senha
	   					<f:setPropertyActionListener target="#{usuarioBean.usuarioSelecionado}" value="#{usuario}"/>
	   				</h:commandLink> 	   				 
	   				|<h:commandLink value="Sair" action="#{validacaoUsuarioBean.encerrarSessao()}" />
	   			</h:form>
	   			</div>
	   			<!-- MENU - INÍCIO -->
					<div id="menubar" class="menubar" align="left">
						<p:menubar id="menubar" model="#{menuBean.menu}" autoSubmenuDisplay="true" />
					</div>
					<!-- MENU - FIM -->	
	   			<div id="mainnav">		
				
				</div>
	   			<div id="contents">
	   				<ui:insert name="body">Page Body</ui:insert>
	   			</div>
	   			<div id="footer">
	   				<ui:insert name="footer">Sistema Bola na Rede - [2014]</ui:insert>
	   			</div>
	   		</div>	   		
   		</h:body>
		
</html>